/**
 * 
 */
package upe.dsc.algorithms.util;

import java.util.Random;

/**
 * @author ajccl/danilo
 * 
 */
public class RandomInt {
	/**
	 * @param seed semente para gerar sequencia aleatoria
	 * @return
	 */
	public static int getRandomInt(int seed) {
		Random randomGenerator = new Random(System.currentTimeMillis() + seed);
		int num = randomGenerator.nextInt();
		return Math.abs(num);
	}
	
	public static int getRandomInt() {
		Random randomGenerator = new Random(System.currentTimeMillis());
		int num = randomGenerator.nextInt();
		return Math.abs(num);
	}
}
